[SOLVED]OnPlayerPickUpPickup
#1

i have problem i needed to add a pickup for a friend but his one doesnt work the first line worked but when i aded his it frows 3 errors

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == house) SendClientMessage(playerid,0xFFFAAA,"This house is owned by server owner [SAK]Karlis");
    return 1;
}
{
    if(pickupid == pablo) SendClientMessage(playerid,0xfad837AA,"Pablo's House");
    return 1;
}
Reply
#2

Use this:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if (pickupid == house)
    {
        SendClientMessage(playerid,0xFFFAAA,"This house is owned by server owner [SAK]Karlis");
    }
    else if (pickupid == pablo)
    {
        SendClientMessage(playerid,0xfad837AA,"Pablo's House");
    }
    return 1;
}
Reply
#3

I believe that would work Thepro
Reply
#4

pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(34) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(35) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(36) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(37) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(38) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(39) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(40) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(310) : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(311) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(312) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(105) : warning 204: symbol is assigned a value that is never used: "pablo"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Reply
#5

Are that the errors from Thepro or from ur first?
Reply
#6

Welldone, i see you've solved the puzzle im that dude from Catch 'n release u send me a message on ******* incase u dont know :P
Reply
#7

hey if i want to make one more pickup i need to type else is again?
Reply
#8

Did you try it? The computer won't kill you if it's wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)