Author Topic: help  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

yazeen

  • Guest
help
« on: February 27, 2011, 01:02:10 pm »
HELP 

HOW TO MAKE DIFFERENT MESSAGES FOR DIFFERENT PICKUPS I MADE AS ROBD SAID BUT ERRORS COME WHEN COMPILING

Code: [Select]
public OnPlayerPickedUp(pickupid, playerid)
{
    if(pickupid == 1) {
        SendClientMessage(playerid,COLOR_GREEN,"use /c jobs to view jobs list");
    }
    return 1;
}
    if(pickupid == 2) {
        SendClientMessage(playerid,COLOR_GREEN,"you have drank a full bottle of beer");
        SetPlayerDrunk(playerid,300,true);
    }
    return 1;
}


this error comes when i used this

Code: [Select]
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(194) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(194) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(289) : error 010: invalid function or declaration
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(293) : error 010: invalid function or declaration
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(355) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(377) : warning 204: symbol is assigned a value that is never used: "szMsg"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(388) : warning 204: symbol is assigned a value that is never used: "szMsg"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(399) : warning 204: symbol is assigned a value that is never used: "szMsg"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(402) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(418) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(433) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(445) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(589) : warning 202: number of arguments does not match definition
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(593) : warning 203: symbol is never used: "snick"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(1984) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(1992) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(2016) : warning 203: symbol is never used: "wep"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(2672) : warning 213: tag mismatch
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(2698) : warning 204: symbol is assigned a value that is never used: "sp"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(3852) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(3881) : warning 209: function "IsAnyoneWanted" should return a value
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(3953) : warning 203: symbol is never used: "PerformSQLquery"
C:\Documents and Settings\yachu\Desktop\New Folder\RPGv1.1\gamemodes\RPG.pwn(3953) : warning 203: symbol is never used: "PerformSQLquerySelect"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


2 Errors.

Offline theway

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: help
« Reply #1 on: February 27, 2011, 02:02:02 pm »
Right:

 
Quote
public OnPlayerPickedUp(pickupid, playerid)
{
    if(pickupid == 1) {
        SendClientMessage(playerid,COLOR_GREEN,"use /c jobs to view jobs list");
    }
    return 1;

    if(pickupid == 2) {
        SendClientMessage(playerid,COLOR_GREEN,"you have drank a full bottle of beer");
        SetPlayerDrunk(playerid,300,true);
    }
    return 1;
}




try  this ,  is about " {} "  wrong,  my poor english   ,

yazeen

  • Guest
Re: help
« Reply #2 on: February 27, 2011, 05:22:12 pm »
Thank you so much ur great

yazeen

  • Guest
Re: help
« Reply #3 on: March 19, 2011, 09:15:20 am »
Right:

 
Quote
public OnPlayerPickedUp(pickupid, playerid)
{
    if(pickupid == 1) {
        SendClientMessage(playerid,COLOR_GREEN,"use /c jobs to view jobs list");
    }
    return 1;

    if(pickupid == 2) {
        SendClientMessage(playerid,COLOR_GREEN,"you have drank a full bottle of beer");
        SetPlayerDrunk(playerid,300,true);
    }
    return 1;
}




try  this ,  is about " {} "  wrong,  my poor english   ,

No ERRORS BUT NOTHING HAPPENDS

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: help
« Reply #4 on: March 19, 2011, 09:37:17 am »
Have you ever setted the pickupid?
like

AddStaticPickup(id,type,Float:X,Float:Y,Float:Z)
so that equals
AddStaticPickup(pickupid you use at OnPlayerPickedUp,his model,X,Y,Z);

Understood?
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

yazeen

  • Guest
Re: help
« Reply #5 on: March 19, 2011, 10:14:54 am »
Have you ever setted the pickupid?
like

AddStaticPickup(id,type,Float:X,Float:Y,Float:Z)
so that equals
AddStaticPickup(pickupid you use at OnPlayerPickedUp,his model,X,Y,Z);

Understood?

i Dont that but the proplem was solved from ur rpg script thx

But how to put respawn seconds