20.06.2014, 21:17
My friend is a scripter as well but he doesn't know how to post on forums so I'm posting this for him. Here's his problem. He wants a car to teleport ( or create itself ) when a player buys it. Here's his script:
He gets these warnings:
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(741) : warning 202: number of arguments does not match definition
Код:
if(GetPlayerMoney(playerid) < 110000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough money.") GivePlayerMoney(playerid, 110000); SendClientMessage(playerid, 0x99FFFF, "0xFF6600[CARDEALER]0x99FFFFYou bought swat-tank."); new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); CreateVehicle(601, x, y, z, 0, 1, 5000000000); <- linija gdje se to desava [warning line]
C:\Users\MARKO\Desktop\Learning\gamemodes\Tutorial .pwn(741) : warning 202: number of arguments does not match definition