Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: yazeen on February 27, 2011, 11:02:10 AM

Title: help
Post by: yazeen on February 27, 2011, 11:02:10 AM
HELP 

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

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

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.
Title: Re: help
Post by: theway on February 27, 2011, 12:02:02 PM
Right:

Quotepublic 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   ,
Title: Re: help
Post by: yazeen on February 27, 2011, 03:22:12 PM
Thank you so much ur great
Title: Re: help
Post by: yazeen on March 19, 2011, 07:15:20 AM
Quote from: theway on February 27, 2011, 12:02:02 PM
Right:

Quotepublic 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
Title: Re: help
Post by: heekz.shadow on March 19, 2011, 07: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?
Title: Re: help
Post by: yazeen on March 19, 2011, 08:14:54 AM
Quote from: heekz.shadow on March 19, 2011, 07: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?

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

But how to put respawn seconds